using System;
using System.Linq;
using System.Data.Linq;
using InfoTech.Core.Service;
using InfoTech.LanTranh.MucVu.Bussiness;

namespace InfoTech.LanTranh.MucVu.Service
{
    public class LINHMUCService : BaseService
    {
        public static bool Check_Insert_LINHMUC(LINHMUC linhmuc)
        {
            return true;
        }

        public static bool Check_Update_LINHMUC(LINHMUC linhmuc)
        {
            return true;
        }

        public static bool Check_Delete_LINHMUC(string[] strings)
        {
            bool result = true;
            DataContext dataContext = CreateDataContext();
            result &= dataContext.GetTable<SOBITICH>().FirstOrDefault(c => strings.Contains(c.MALINHMUC + "")) == null;
            return result;
        }
    }
}
